package com.tencreat.domain.mall.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 购物车新增、修改
 * @author zixin
 */
@Data
public class MallCartAddDTO {

    @ApiModelProperty(value = "商品ID",required = true)
    @NotNull(message = "商品ID不能为空")
    private Long goodsId;

    @ApiModelProperty(value = "数量",required = true)
    @NotNull(message = "数量不能不能")
    private Integer number;

    @ApiModelProperty(value = "规格不能为空",required = true)
    @NotNull(message = "规格不能为空")
    private Long normsId;

}
